<?php namespace App\Controllers;

use CodeIgniter\Controller;

class Version2 extends Controller{







    public function __construct(){
        date_default_timezone_set('Asia/Shanghai');
        $this->db  = \Config\Database::connect();
        $this->data = array();

    }




	public function index(){
        $this->viewer('version2/index');
    }




    public function viewer($page){
		echo view('version2/app_header');
		echo view($page,$this->data);
		echo view('version2/app_footer');
    }




}